package yevgeniy.melnichuk.selenium.worker;

import junit.framework.Assert;

import com.thoughtworks.selenium.Selenium;

public class IsTextPresentSeleniumWorker extends SeleniumWorker {
	String text;

	public IsTextPresentSeleniumWorker(Selenium selenium, String text) {
		super(selenium);

		this.text = text;
	}

	@Override
	public void run() {
		Assert.assertTrue("text not found: " + text, selenium.isTextPresent(text));
	}
}
